type runtime.mspan
121 uses
runtime (current package)
arena.go#L239: fullList *mspan
arena.go#L242: active *mspan
arena.go#L382: func (a *userArena) refill() *mspan {
arena.go#L425: *mspan // Must represent a user arena chunk.
arena.go#L449: func (s *mspan) userArenaNextFree(typ *_type, cap int) unsafe.Pointer {
arena.go#L539: func userArenaHeapBitsSetSliceType(typ *_type, n int, ptr unsafe.Pointer, s *mspan) {
arena.go#L553: func userArenaHeapBitsSetType(typ *_type, ptr unsafe.Pointer, s *mspan) {
arena.go#L600: func (s *mspan) writeUserArenaHeapBits(addr uintptr) (h writeUserArenaHeapBits) {
arena.go#L620: func (h writeUserArenaHeapBits) write(s *mspan, bits, valid uintptr) writeUserArenaHeapBits {
arena.go#L651: func (h writeUserArenaHeapBits) pad(s *mspan, size uintptr) writeUserArenaHeapBits {
arena.go#L665: func (h writeUserArenaHeapBits) flush(s *mspan, addr, size uintptr) {
arena.go#L737: func newUserArenaChunk() (unsafe.Pointer, *mspan) {
arena.go#L761: var span *mspan
arena.go#L844: func (s *mspan) isUnusedUserArenaChunk() bool {
arena.go#L853: func (s *mspan) setUserArenaChunkToFault() {
arena.go#L934: func freeUserArenaChunk(s *mspan, x unsafe.Pointer) {
arena.go#L992: func (h *mheap) allocUserArenaChunk() *mspan {
arena.go#L993: var s *mspan
malloc.go#L927: func nextFreeFast(s *mspan) gclinkptr {
malloc.go#L954: func (c *mcache) nextFree(spc spanClass) (v gclinkptr, s *mspan, checkGCTrigger bool) {
mbitmap.go#L154: func (span *mspan) typePointersOf(addr, size uintptr) typePointers {
mbitmap.go#L171: func (span *mspan) typePointersOfUnchecked(addr uintptr) typePointers {
mbitmap.go#L213: func (span *mspan) typePointersOfType(typ *abi.Type, addr uintptr) typePointers {
mbitmap.go#L371: func (span *mspan) objBase(addr uintptr) uintptr {
mbitmap.go#L537: func (s *mspan) initHeapBits() {
mbitmap.go#L563: func (span *mspan) heapBits() []uintptr {
mbitmap.go#L601: func (span *mspan) heapBitsSmallForAddr(addr uintptr) uintptr {
mbitmap.go#L641: func (span *mspan) writeHeapBitsSmall(x, dataSize uintptr, typ *_type) (scanSize uintptr) {
mbitmap.go#L721: func heapSetTypeNoHeader(x, dataSize uintptr, typ *_type, span *mspan) uintptr {
mbitmap.go#L732: func heapSetTypeSmallHeader(x, dataSize uintptr, typ *_type, header **_type, span *mspan) uintptr {
mbitmap.go#L740: func heapSetTypeLarge(x, dataSize uintptr, typ *_type, span *mspan) uintptr {
mbitmap.go#L750: func doubleCheckHeapType(x, dataSize uintptr, gctyp *_type, header **_type, span *mspan) {
mbitmap.go#L779: func doubleCheckHeapPointers(x, dataSize uintptr, typ *_type, header **_type, span *mspan) {
mbitmap.go#L836: func doubleCheckHeapPointersInterior(x, interior, size, dataSize uintptr, typ *_type, header **_type, span *mspan) {
mbitmap.go#L914: func doubleCheckTypePointersOfType(s *mspan, typ *_type, addr, size uintptr) {
mbitmap.go#L1034: func (s *mspan) allocBitsForIndex(allocBitIndex uintptr) markBits {
mbitmap.go#L1043: func (s *mspan) refillAllocCache(whichByte uint16) {
mbitmap.go#L1061: func (s *mspan) nextFreeIndex() uint16 {
mbitmap.go#L1116: func (s *mspan) isFree(index uintptr) bool {
mbitmap.go#L1132: func (s *mspan) divideByElemSize(n uintptr) uintptr {
mbitmap.go#L1148: func (s *mspan) objIndex(p uintptr) uintptr {
mbitmap.go#L1158: func (s *mspan) markBitsForIndex(objIndex uintptr) markBits {
mbitmap.go#L1163: func (s *mspan) markBitsForBase() markBits {
mbitmap.go#L1218: func badPointer(s *mspan, p, refBase, refOff uintptr) {
mbitmap.go#L1271: func findObject(p, refBase, refOff uintptr) (base uintptr, s *mspan, objIndex uintptr) {
mbitmap.go#L1405: func (s *mspan) countAlloc() int {
mcache.go#L46: alloc [numSpanClasses]*mspan // spans to allocate from, indexed by spanClass
mcache.go#L84: var emptymspan mspan
mcache.go#L220: func (c *mcache) allocLarge(size uintptr, noscan bool) *mspan {
mcentral.go#L81: func (c *mcentral) cacheSpan() *mspan {
mcentral.go#L108: var s *mspan
mcentral.go#L204: func (c *mcentral) uncacheSpan(s *mspan) {
mcentral.go#L250: func (c *mcentral) grow() *mspan {
mgcmark.go#L1585: func greyobject(obj, base, off uintptr, span *mspan, gcw *gcWork, objIndex uintptr) {
mgcmark.go#L1691: func gcmarknewobject(span *mspan, obj uintptr) {
mgcsweep.go#L96: func (h *mheap) nextSpanForSweep() *mspan {
mgcsweep.go#L101: var s *mspan
mgcsweep.go#L329: *mspan
mgcsweep.go#L334: func (l *sweepLocker) tryAcquire(s *mspan) (sweepLocked, bool) {
mgcsweep.go#L457: func (s *mspan) ensureSwept() {
mgcsweep.go#L843: func (s *mspan) reportZombies() {
mgcwork.go#L366: var s *mspan
mheap.go#L83: allspans []*mspan // all spans out there
mheap.go#L261: spans [pagesPerArena]*mspan
mheap.go#L398: first *mspan // first span in list, or nil if none
mheap.go#L399: last *mspan // last span in list, or nil if none
mheap.go#L402: type mspan struct {
mheap.go#L404: next *mspan // next span in list, or nil if none
mheap.go#L405: prev *mspan // previous span in list, or nil if none
mheap.go#L498: func (s *mspan) base() uintptr {
mheap.go#L502: func (s *mspan) layout() (size, n, total uintptr) {
mheap.go#L526: s := (*mspan)(p)
mheap.go#L535: var new []*mspan
mheap.go#L676: func spanOf(p uintptr) *mspan {
mheap.go#L711: func spanOfUnchecked(p uintptr) *mspan {
mheap.go#L722: func spanOfHeap(p uintptr) *mspan {
mheap.go#L750: h.spanalloc.init(unsafe.Sizeof(mspan{}), recordspan, unsafe.Pointer(h), &memstats.mspan_sys)
mheap.go#L959: func (h *mheap) alloc(npages uintptr, spanclass spanClass) *mspan {
mheap.go#L963: var s *mspan
mheap.go#L992: func (h *mheap) allocManual(npages uintptr, typ spanAllocType) *mspan {
mheap.go#L1001: func (h *mheap) setSpans(base, npage uintptr, s *mspan) {
mheap.go#L1090: func (h *mheap) tryAllocMSpan() *mspan {
mheap.go#L1113: func (h *mheap) allocMSpanLocked() *mspan {
mheap.go#L1119: return (*mspan)(h.spanalloc.alloc())
mheap.go#L1125: pp.mspancache.buf[i] = (*mspan)(h.spanalloc.alloc())
mheap.go#L1145: func (h *mheap) freeMSpanLocked(s *mspan) {
mheap.go#L1177: func (h *mheap) allocSpan(npages uintptr, typ spanAllocType, spanclass spanClass) (s *mspan) {
mheap.go#L1390: func (h *mheap) initSpan(s *mspan, typ spanAllocType, spanclass spanClass, base, npages uintptr) {
mheap.go#L1565: func (h *mheap) freeSpan(s *mspan) {
mheap.go#L1605: func (h *mheap) freeManual(s *mspan, typ spanAllocType) {
mheap.go#L1621: func (h *mheap) freeSpanLocked(s *mspan, typ spanAllocType) {
mheap.go#L1707: func (span *mspan) init(base uintptr, npages uintptr) {
mheap.go#L1730: func (span *mspan) inList() bool {
mheap.go#L1740: func (list *mSpanList) remove(span *mspan) {
mheap.go#L1765: func (list *mSpanList) insert(span *mspan) {
mheap.go#L1783: func (list *mSpanList) insertBack(span *mspan) {
mheap.go#L1850: func spanHasSpecials(s *mspan) {
mheap.go#L1858: func spanHasNoSpecials(s *mspan) {
mheap.go#L1943: func (span *mspan) specialFindSplicePoint(offset uintptr, kind byte) (**special, bool) {
mheap.go#L2339: func newSpecialsIter(span *mspan) specialsIter {
mspanset.go#L74: func (b *spanSet) push(s *mspan) {
mspanset.go#L141: func (b *spanSet) pop() *mspan {
mspanset.go#L397: func (p *atomicMSpanPointer) Load() *mspan {
mspanset.go#L398: return (*mspan)(p.p.Load())
mspanset.go#L402: func (p *atomicMSpanPointer) StoreNoWB(s *mspan) {
os_nonopenbsd.go#L11: func osStackAlloc(s *mspan) {
os_nonopenbsd.go#L16: func osStackFree(s *mspan) {
pinner.go#L270: func (s *mspan) pinnerBitSize() uintptr {
pinner.go#L277: func (s *mspan) newPinnerBits() *pinnerBits {
pinner.go#L284: func (s *mspan) getPinnerBits() *pinnerBits {
pinner.go#L288: func (s *mspan) setPinnerBits(p *pinnerBits) {
pinner.go#L295: func (s *mspan) refreshPinnerBits() {
pinner.go#L326: func (span *mspan) incPinCounter(offset uintptr) {
pinner.go#L347: func (span *mspan) decPinCounter(offset uintptr) bool {
runtime2.go#L686: buf [128]*mspan
stack.go#L392: var s *mspan
traceallocfree.go#L83: func traceSpanTypeAndClass(s *mspan) traceArg {
traceallocfree.go#L91: func (tl traceLocker) SpanExists(s *mspan) {
traceallocfree.go#L96: func (tl traceLocker) SpanAlloc(s *mspan) {
traceallocfree.go#L101: func (tl traceLocker) SpanFree(s *mspan) {
traceallocfree.go#L106: func traceSpanID(s *mspan) traceArg {